﻿@using GSLMS.Entity
@using GSLMS.Entity.Enum
@model GSLMS.Entity.TB_APP_REGINFO
@{
    Layout = null;
    Model.RefRegInfo = Model.RefRegInfo ?? new TB_APP_REFREGINFO();
    var ddlDepName = ViewData["DepName"] as SelectList;
}
<div class="pageContent" layouth="5">
    <form method="post" id="formGAuditRefRegInfo" action="DianDang/BMAudit/bManager/GAuditRefRegInfo?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, dialogAjaxDone)">
    @Html.ValidationSummary(true)
    @Html.HiddenFor(c => c.RefRegInfo.ID)
    @Html.HiddenFor(c => c.RefRegInfo.REGINFOID)
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(model => model.ID)
        <p>
            <label>
                客户名称：</label>
            @Html.ValueFor(model => model.CUSTNAME)
        </p>
        <p>
            <label>
                证件号码：</label>
            @Html.ValueFor(model => model.CUSTNO)
        </p>
        <p>
            <label>
                联系人：</label>
            @Html.ValueFor(model => model.LINKMAN)
        </p>
        <p>
            <label>
                联系人手机：</label>
            @Html.ValueFor(model => model.LINKMANTEL)
        </p>
        <p>
            <label>
                来源渠道：</label>
            @Html.ValueFor(model => model.SOURCE)
        </p>
        <p>
            <label>
                中介人：</label>
            @Html.ValueFor(model => model.MEDIATOR)
        </p>
        <p>
            <label>
                中介人手机：</label>
            无
        </p>
        <p>
            <label>
                登记时间：</label>
            <span formatdate="yyyy-MM-dd">@Html.ValueFor(model => model.REGDATE)</span>
        </p>
        <p>
            <label>
                登记人：</label>
            @Html.ValueFor(model => model.REGMAN)
        </p>
        <p>
            <label>
                意向贷款金额：</label>
            @Html.ValueFor(model => model.INTEMTIONAMT)
            万元
        </p>
        <p>
            <label>
                重要级别：</label>
            @Html.ValueFor(model => model.IMPORTANTLEVEL)
        </p>
        <div class="divider">
        </div>
        <p style="width: 95%">
            <label>
                详细内容：</label>
            @Html.ValueFor(model => model.REMARK)
        </p>
        <p>
            <label>
                申请时间：</label>
            <span formatdate="yyyy-MM-dd">@Html.ValueFor(model => model.RefRegInfo.APPDATE)</span>
        </p>
        <p>
            <label>
                转出部门：</label>
            @Html.ValueFor(model => model.RefRegInfo.OUTDEPNAME)
        </p>
        <p>
            <label>
                转出时间：</label>
            <span formatdate="yyyy-MM-dd">@Html.ValueFor(model => model.RefRegInfo.OUTTIME)</span>
        </p>
        <p>
            <label>
                转入部门：</label>
            @Html.DropDownListFor(model => model.RefRegInfo.INDEPID, ddlDepName, new { @class = "combox required", @selectedvalue = Model.RefRegInfo.INDEPID })
            @Html.HiddenFor(model=>model.RefRegInfo.AUDITBY)
            @Html.HiddenFor(model=>model.RefRegInfo.BACKSTATUS)
            @Html.Hidden("hidActiondo")
        </p>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="GAuditRefRegInf(2)">
                            同意</button></div>
                </div>
            </li>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="GAuditRefRegInf(3)">
                            拒绝</button></div>
                </div>
            </li>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            返回列表</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
<script>
    function GAuditRefRegInf(action) {
        $form = $("#formGAuditRefRegInfo");
        $("#hidActiondo", $form).val(action);
        validateCallback($form, dialogAjaxDone);
    }
</script>
